projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d798527
)
Clean up a leak in a test
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 10 May 2020 21:13:26 +0000
(17:13 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 May 2020 12:15:55 +0000
(08:15 -0400)
One of the treeview tests was calling gtk_widget_destroy
on a child instead of the toplevel, which leaks the toplevel
unnecessarily. Plus, we're moving towards allowing destroy
only on toplevels.
testsuite/gtk/treeview.c
patch
|
blob
|
history
diff --git
a/testsuite/gtk/treeview.c
b/testsuite/gtk/treeview.c
index e97258d93ae5c6b747e4dc187eba49632285b9a8..0d7b1222bcee17f48d18cdfbbd1bb7a2984355d4 100644
(file)
--- a/
testsuite/gtk/treeview.c
+++ b/
testsuite/gtk/treeview.c
@@
-225,7
+225,7
@@
test_row_separator_height (void)
g_assert_cmpint (rect.height, ==, height);
g_assert_cmpint (cell_rect.height, ==, height);
- gtk_widget_destroy (
tree_vie
w);
+ gtk_widget_destroy (
windo
w);
}
static void